import request from '../utils/request'

export const userRegisterService = (data) => {
    // 会直接传输json数据
    
    return request.post('/user/register',data)
}

export const userLoginService = (data) => {
    return request.post('/user/login', data)
}


export const getUserDataService = () => {
    return request.get('/user/userInfo')
}

export const updateUserInfoService = (data) => {
    return request.put('/user/update', data)
}


export const updatePasswordService = (data) => {
    return request.patch('/user/updatePassword', data)
}